﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DistancePayDetail.aspx.cs" Inherits="Admin_shop_DistancePayDetail" %>

<%@ Register Src="~/Admin/Banner.ascx" TagName="TogoBanner" TagPrefix="uc1" %>
<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="~/Admin/Adleft.ascx" TagName="left" TagPrefix="uc3" %>
<%@ Register TagPrefix="epc" Namespace="Hangjing.Control" Assembly="Hangjing.Control" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>配送范围信息管理-<%= WebUtility.GetMyName()%></title>
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../css/boxes.css" rel="stylesheet" type="text/css" />
    <link href="../css/Validator.css" rel="stylesheet" type="text/css" />
    <link href="../css/divDialog.css" rel="stylesheet" type="text/css" />
    <link href="../css/Common.css" rel="stylesheet" type="text/css" />
    <link href="../css/building.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="../css/iestyles.css" media="all" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/below_ie7.css" media="all" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/ie7.css" media="all" />
    <![endif]-->

    <script type="text/javascript" src="../javascript/DatePicker/WdatePicker.js"></script>

    <script src="../javascript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../javascript/Common.js" type="text/javascript"></script>

    <script src="../javascript/ScollTop.js" type="text/javascript"></script>

    <script src="../javascript/ShowDivDialog.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        $(window).load(function () { $("#loading-mask").hide(); });
        function reset() {
            var object = document.getElementById("tbFoodsort");
            object.value = "";
        }

        function GotoFoodSortList() {
            window.location.href = "FoodSortList.aspx?tid=" + document.getElementById("hidTogoId").value + "";
        }

        function basedistanceblur()
        {
            $("#lbbasedistance").html($("#tbdistancestart").val());
        }


    </script>

</head>
<body>
    <form id="form1" runat="server">
        <epc:Hint ID="Hint1" runat="server" HintImageUrl="../images/Control" />
        <div class="wrapper">
            <!--banner start-->
            <uc1:TogoBanner runat="server" ID="Banner" />
            <!--banner end-->
            <!--center start-->
            <div class="middle" id="anchor-content">
                <div id="page:main-container">
                    <div class="columns ">
                        <div class="side-col" id="page:left">
                            <uc3:left runat="server" ID="left" />
                        </div>
                        <div class="main-col" id="content">
                            <asp:ScriptManager ID="ScriptManager1" runat="server">
                            </asp:ScriptManager>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <div class="main-col-inner">
                                        <div id="divMessages">
                                        </div>

                                        <ul id="diagram_tab" class="tabs-horiz" style="border-bottom: none">
                                            <li><a href="ShopDetail.aspx?id=<%= Request["tid"] %>" class="tab-item-link ">
                                                <span><span class="changed"></span><span class="error"></span>商家信息</span> </a>
                                            </li>

                                            <li><a href="DistancePayDetail.aspx?tid=<%= Request["tid"] %>" class="tab-item-link active"><span>
                                                <span class="changed"></span><span class="error"></span>配送费规则</span> </a></li>
                                            <li><a href="ShopLocal.aspx?tid=<%= Request["tid"] %>" class="tab-item-link "><span>
                                                <span class="changed"></span><span class="error"></span>地图定位</span> </a></li>

                                        </ul>

                                        <div style="visibility: visible;" class="content-header">
                                            <h3 class="icon-head head-customer">
                                                <asp:Label runat="server" ID="pageType"></asp:Label></h3>
                                            <div style="width: 0px; height: 17px;" class="content-buttons-placeholder">
                                                <p style="" class="content-buttons form-buttons">
                                                   

                                                    <asp:Button ID="btSave" runat="server" CssClass="button_1" OnClick="btSave_Click"
                                                        Text="保存"></asp:Button>
                                                </p>
                                            </div>
                                        </div>
                                       
                                        <div class="entry-edit">
                                            <div id="customer_info_tabs_account_content" style="">
                                                <div class="entry-edit">
                                                    <div class="entry-edit-head">
                                                        <h4 class="icon-head head-billing-address">配送范围信息</h4>
                                                    </div>
                                                    <fieldset class="np">
                                                        <div class="order-address" id="order-billing_address_fields">
                                                            <div class="content">
                                                                <div class="hor-scroll">
                                                                    <table class="form-list" cellspacing="0">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td class="label">
                                                                                    <label for="_accountprefix">
                                                                                        所属餐馆</label>
                                                                                    <asp:HiddenField runat="server" ID="hidTogoId" />
                                                                                    <asp:HiddenField runat="server" ID="hidDataId" />
                                                                                </td>
                                                                                <td class="label">
                                                                                    <label for="_accountprefix" runat="server" id="lbtogoname">
                                                                                    </label>
                                                                                </td>
                                                                                <td>
                                                                                    <small>&nbsp;</small>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="label">
                                                                                    <label for="_accountprefix">
                                                                                        规则<span class="required">*</span></label>
                                                                                </td>
                                                                                <td class="value" style="width: 600px; line-height:35px;">

                                                                                    <div>
                                                                                        从0公里到<epc:TextBox runat="server" ID="tbdistancestart" onblur="basedistanceblur()" CanBeNull="必填" RequiredFieldType="正整数" Width="60px"
                                                                                            class=" required-entry required-entry input-text"></epc:TextBox>公里，每<epc:TextBox runat="server" ID="tbdistanceend" CanBeNull="必填" RequiredFieldType="正整数" Width="60px"
                                                                                                class=" required-entry required-entry input-text"></epc:TextBox>公里收<epc:TextBox runat="server" ID="tbReveFloat1" CanBeNull="必填" RequiredFieldType="数据校验" Width="60px"
                                                                                                    class=" required-entry required-entry input-text"></epc:TextBox>&nbsp;&nbsp;元
                                                                                    </div>

                                                                                    <div style="position:relative;">
                                                                                        从<label runat="server" id="lbbasedistance"></label> 公里开始，每<epc:TextBox runat="server" ID="tbReveInt1" CanBeNull="必填" RequiredFieldType="数据校验" Width="60px"
                                                                                                class=" required-entry required-entry input-text"></epc:TextBox>公里加收<epc:TextBox runat="server" ID="tbsendmoney" CanBeNull="必填" RequiredFieldType="数据校验"  Width="60px"
                                                                                                    class=" required-entry required-entry input-text"></epc:TextBox>&nbsp;&nbsp;元

                                                                                        <div>
                                                                                            <div style="background-image: url(/Admin/images/getapp_arrow.png); width:48px; height:56px;  margin-left:90px;"></div>
                                                                                             <div class="notice">提示：此栏大于100表示超过基础距离，增加固定金额</div>
                                                                                        </div>

                                                                                    </div>



                                                                                </td>
                                                                                <td>
                                                                                    <small>&nbsp;</small>
                                                                                </td>
                                                                            </tr>



                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </fieldset>
                                                </div>
                                            </div>
                                        </div>
                                        <!--end-->
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                </div>
            </div>
            <!--foot start-->
            <uc2:Foot runat="server" ID="FootUC" />
            <!--foot end-->
        </div>
        <!--新增完成后弹出的窗口-->
        <div id="divShowContent" style="display: none;">
            您可以继续进行的操作<br />
            <ul>
                <li>
                    <button type="button" class="scalable " onclick="GotoFoodSortList()" style="">
                        <span>进入商家配送范围列表</span></button></li>
                <li>
                    <button type="button" class="scalable " onclick="GotoAddFoodSort()" style="">
                        <span>为此商家添加配送范围分类</span></button></li>
                <li>
                    <button type="button" class="scalable " onclick="GotoAddFood()" style="">
                        <span>为此商家添加菜单</span></button></li>

                <li><a href="ShopDetail.aspx">新增商家</a></li>
                <li><a href="ShopList.aspx">进入商家列表</a></li>
            </ul>
        </div>

        <script language="javascript" type="text/javascript">
            function GotoAddFood() {
                window.location.href = "FoodDetail.aspx?tid=" + document.getElementById("hidTogoId").value + "";
            }

            function GotoAddPrinter() {
                window.location.href = "AddPrinter.aspx?tid=" + document.getElementById("hidTogoId").value + "";
            }

            function GotoAddFoodSort() {
                window.location.href = "DistancePayDetail.aspx?tid=" + document.getElementById("hidTogoId").value + "";
            }
            function GotoFoodSortList() {
                window.location.href = "DistancepayList.aspx?tid=" + document.getElementById("hidTogoId").value + "";
            }
        </script>

    </form>
</body>
</html>
